﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;


namespace AddInMain
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        
        log4net.ILog logger = log4net.LogManager.GetLogger(typeof(App));
        protected override void OnStartup(StartupEventArgs e)
        {
            try
            {
                base.OnStartup(e);
                log4net.Config.XmlConfigurator.Configure();
                logger.Info("Main start....");
                //MainWindow main = new MainWindow();
                //main.Show();
                TestWin win = new TestWin();
                win.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "AddIn Main", MessageBoxButton.OK, MessageBoxImage.Error);
                logger.Error(ex);
            }
            
        }

        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);
            logger.Info("Main end");
        }

        
    }
}
